import Vue from 'vue'
// 导入路由模块
import VueRouter from 'vue-router'
//安装axiosajax模块
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
axios.defaults.baseURL = '/api'
axios.defaults.headers.post['Content-Type'] = 'application/json';
Vue.config.productionTip = false

//安装路由模块
Vue.use(VueRouter)
// 导入自己的router 路由模块
import router from './router.js'
import 'mint-ui/lib/style.css';
import './css/css/mui.css';

import './css/css/icons-extra.css';
import { Header, Tabbar, TabItem, Swipe, SwipeItem } from 'mint-ui';
//定义全局过滤器


Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Header.name, Header);
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);


import App from './App.vue'

Vue.config.productionTip = false

new Vue({
  render: h => h(App),

  router
}).$mount('#app')

